<%--
  User: Shengzhao Li
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:forEach items="${overviewDto.groupResults}" var="g" varStatus="status">
    <c:if test="${(status.count eq 1)}" var="first">
        <c:if test="${overviewDto.showLogDate}">
            <li data-role="list-divider"><span>${g.key}</span> <span class="ui-li-count">${g.resultsSize}</span></li>
        </c:if>
    </c:if>
    <c:if test="${not first}">
        <li data-role="list-divider"><span>${g.key}</span> <span class="ui-li-count">${g.resultsSize}</span></li>
    </c:if>
    <c:forEach items="${g.results}" var="e">
        <li>
            <a href="details/${e.guid}" data-transition="slide">
                <h3>
                        ${e.logType.name}
                    <c:if test="${e.privateLog}">
                        <img src="${contextPath}/images/mobile/lock.png" alt="private"/>
                    </c:if>
                </h3>

                <c:if test="${not e.user.allowEdit}">
                    <p class="color-b"><span>${e.user.showName}</span> 写的.
                        <c:if test="${e.commentSize > 0}">
                            <span class="gray">${e.commentSize}条评论 </span>
                        </c:if>
                    </p>
                </c:if>
                <c:if test="${e.user.allowEdit and e.commentSize > 0}">
                    <p class="color-b">
                        <span class="gray">${e.commentSize}条评论 </span>
                    </p>
                </c:if>

                <p>${e.content} </p>

                <p class="ui-li-aside"><strong>${e.createTime}</strong></p>
            </a>
        </li>
    </c:forEach>
</c:forEach>